const webpack = require('webpack');
const path = require('path');

module.exports = {
    //页面入口文件配置
    entry: {
        index : './src/index.js',
        list : './src/list.js'
    },
    //入口文件输出配置
    output: {
        path: "./dist/js",
        filename: '[name].bundle.js'
    },
    module: {
        //加载器配置
        rules: [
            //{ test: /\.js$/, use: 'babel-loader' }
        ]
    },
    devServer: {
        contentBase: __dirname + "/src",  // New
    }
};